<template>
	<view class="popup-close" :style="'top:'+top+'%;right:'+right+'%'" role="button" @click="$emit('close')">关闭弹窗</view>
</template>

<script>
	export default{
		props:{
			top:{
				default:10
			},
			right:{
				default:5
			}
		},
		emits:['close']
	}
</script>

<style lang="scss">
	.popup-close{
		position:absolute;
		top:10%;
		right:5%;
		
		@include border-four-roundings;
		padding: 8px;
		color: #383838;
		font-weight: 700;
		background-color: #fff;
	}
</style>